package com.flin.icesilkworm.examination.bas.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.flin.icesilkworm.framework.pojos.ResultMessage;
import com.flin.icesilkworm.framework.spring.annotation.SmcController;
import com.flin.icesilkworm.framework.spring.auth.Auth;
import com.flin.icesilkworm.framework.ui.pojo.UiViewForm;
import com.flin.icesilkworm.examination.gen.bas.controller.GeneratedTheExaminationPaperRelController;

@SmcController
@Auth(authCode = "smc_bas_TheExaminationPaperRel", authDesc = "试卷与题目手动关联", ctrl = true)
@RequestMapping("/smc/bas/TheExaminationPaperRel")
public class TheExaminationPaperRelController extends GeneratedTheExaminationPaperRelController {

	
	/**
	* Description:
	*    查询数量"试卷与题目手动关联"
	* AccessUrl:
	*     /queryTheExaminationPaperRel.json
	* Parameters:
	*     form : 表格参数
	* Return:    
	*	  ResultDto : 表格的数据集合（数据类型：Map）
	* History: 
	*     1.00  auto_time  sybris   Creation
	* Example:
	*/
	@Auth(authCode="countTheExaminationPaperRel",authDesc="查询数量'试卷与题目手动关联'",ctrl=true)
	@RequestMapping("/countTheExaminationPaperRel.json")
	public @ResponseBody ResultMessage countTheExaminationPaperRel(@RequestBody UiViewForm form){


		return new ResultMessage(theExaminationPaperRelService.count(form));	
	
	}	
}